﻿/************************************************************************

   Extended Silverlight Toolkit

   Copyright (C) 2010-2012 Xceed Software Inc.

   This program is provided to you under the terms of the Microsoft Public
   License (Ms-PL) as published at http://extendedsilverlight.codeplex.com/license

   Please purchase a commercial version of this toolkit if you are using
   it in a commercial product. The commercial versions support the project,
   and also include more features for each control, priority support,
   source code, updates, removed watermark, and a proprietary license.

   Visit http://xceed.com and follow @datagrid on Twitter.

  **********************************************************************/


namespace Xceed.Silverlight.DataGrid
{
  public partial class DataGridControl
  {
    private class ReferenceUpdateRequest : UpdateRequest
    {

      public ReferenceUpdateRequest( bool useTransition, object fetchPositionReference, FetchDirection fetchDirection )
        :base(useTransition)
      {
        this.FetchPositionReference = fetchPositionReference;
        this.FetchDirection = fetchDirection;
      }

      public ReferenceUpdateRequest( UpdateDetails updateDetails, object fetchPositionReference, FetchDirection fetchDirection )
        : base( updateDetails )
      {
        this.FetchPositionReference = fetchPositionReference;
        this.FetchDirection = fetchDirection;
        this.UpdateDetails = updateDetails;
      }

      public ReferenceUpdateRequest( object fetchPositionReference, long skip, FetchDirection fetchDirection )
        : base()
      {
        this.FetchPositionReference = fetchPositionReference;
        this.FetchDirection = fetchDirection;
        this.Skip = skip;
      }

      public ReferenceUpdateRequest( UpdateDetails updateDetails, object fetchPositionReference, long skip, FetchDirection fetchDirection )
        : base( updateDetails )
      {
        this.FetchPositionReference = fetchPositionReference;
        this.FetchDirection = fetchDirection;
        this.Skip = skip;
        this.UpdateDetails = updateDetails;
      }

      public object FetchPositionReference
      {
        get;
        private set;
      }

      public FetchDirection FetchDirection
      {
        get;
        private set;
      }

      public long Skip
      {
        get;
        private set;
      }

      public OffsetLength ReferenceOffscreenLength
      {
        get;
        set;
      }
    }

  }
}
